# This is a Python3 Script used to generate model files of colorful gekotas
import json

colors = ["black","blue","brown","cyan","gray","green","light_blue","light_gray","lime","magenta","orange","pink","purple","red","white","yellow"]

# Model Template
def getColor(color):
    return {
    "parent": "misaka:block/gekota/gekota_template",
    "textures": {
        "facade": "misaka:block/gekota_" + color,
        "side": "misaka:block/gekota_" + color + "_side",
        "particle": "misaka:block/gekota_" + color
    }
}

# Colorful Gekotas...
for col in range(0, len(colors)):
    with open('gekota_' + colors[col] + '.json', 'w+') as f:
        data = json.dumps(getColor(colors[col]), sort_keys=True, indent=4, separators=(',', ': '))
        f.write(data)
